package vineetmanohar.timelock;

/**
 * A device which can be locked but automatically unlocks after a given amount
 * of time.
 * 
 * @author Vineet Manohar
 */
public interface TimeLock {
	/**
	 * is the device locked?
	 * 
	 * @return
	 */
	public boolean isLocked();

	/**
	 * reset the lock for the given amount of time
	 * 
	 * @param milliseconds
	 *            the amount of time in milliseconds after which the device will
	 *            automatically unlock
	 */
	public void lock(int milliseconds);
}